/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package exercises.day01.pt1;

import java.io.IOException;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.text.DecimalFormat;
import java.util.Scanner;

/**
 * MyFirstJava
 *
 * @author (jaice)
 * @version 0.1 (may 28, 2012)
 * 
 *Create 
 *another application that accepts the number of seconds and display the hours, 
 *minutes, and seconds.
 * 
 */
public class SecondsToTime {

    public static void main(String args[]) {
        //declare variable
        int hours = 0;
        int minutes = 0;
        int seconds = 0;
        int total = 0;


        //declare scanner
        Scanner sc = new Scanner(System.in);

        //print input hours
        System.out.println("enter total seconds");

        //get input hours
        total = sc.nextInt();


        //print equivalent to hours 
        System.out.println("\n\nEquivalent to hours is   " + total / 3600);


        //print equivalent to minutes 
        System.out.println("Equivalent to minutes is   " + (total % 3600) / 60);


        //print equivalent to seconds 
        System.out.println("Equivalent to seconds is   " + (total % 3600) % 60);




    }
}
